<style>
	page{}
</style>

<style lang="scss" scoped>
	.root{

	}
</style>

<template>
	<view  class="root">
		<u-cell-group>
			<u-cell-item title="用户协议" 
				@click="$u.route('/pagesA/text?type=fwxy')" 
				hover-class="cell-hover-class">
			</u-cell-item>
			<u-cell-item title="隐私政策" 
				@click="$u.route('/pagesA/text?type=yszc')" 
				hover-class="cell-hover-class">
			</u-cell-item>
<!-- 			<u-cell-item title="系统版本" 
				:value="version" 
				@click="checkUp">
			</u-cell-item> -->
		</u-cell-group>
		
<!-- 		<u-cell-group class="u-m-t-30">
			<u-cell-item title="切换语言" 
				:value="langList[langIndex].name" 
				@click="modifyInfo('language')">
			</u-cell-item>
		</u-cell-group> -->
		
		
		<u-cell-group class="u-m-t-30" v-if="addonIsExit.membercancel && memberConfig.is_enable == 1">
			<u-cell-item title="注销账号" @click="modifyInfo('cancellation')"></u-cell-item>
		</u-cell-group>
		
		<view class="save-item u-m-t-50" @click="logout" v-if="!$util.isWeiXin()">
			<button type="primary">退出登录</button>
		</view>
		
		<!-- <check-up ref="checkup"></check-up> -->
	</view>
</template>

<script>
	import info from '@/pages/member/public/js/info.js';
	import globalConfig from '@/common/js/golbalConfig.js';
	let _this;
	export default {
		data() {
			return {
				pageData:{},
				version:'1.0.01',
			}
		},
		mixins: [info,globalConfig],
		watch:{
			
		},
		onLoad(e){
			_this = this;
			// _this.getPageData();


			//是否生产模式
			if (process.env.NODE_ENV != "development") {
				// #ifdef APP-PLUS
				this.version = plus.runtime.version;
				// #endif
			}
		},
		methods:{
			checkUp() {
			  this.$refs.checkup.checkedApp();
			},
			getPageData(){
				this.xhsRequest('','post', {}).then((res)=>{
					if (res.err === 0) {
						this.pageData = res.data;
					} 
				}) 
			}
		},
		onPullDownRefresh(){

		},
	}
</script>

